home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 4 / Amiga Tools 4.iso / tools / internet-tools / connect-line / cl / devkit / c / include / clmidb.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-12  |  1.6 KB  |  62 lines

  1. #ifndef _CL_CLMIDB_H
  2. #define _CL_CLMIDB_H
  3.  
  4. /*
  5.         clmidb.library
  6.         --------------
  7.         fast MessageID database
  8. */
  9.  
  10. #ifndef _NO_PRAG
  11. extern struct Library *CLMidbBase;
  12. #pragma libcall CLMidbBase CLMID_StoreID 1e 9802
  13. #pragma libcall CLMidbBase CLMID_CheckID 24 9802
  14. #pragma libcall CLMidbBase CLMID_CheckStoreID 2a A9803
  15. #pragma libcall CLMidbBase CLMID_Flush 30 0
  16. #pragma libcall CLMidbBase CLMID_CloseDB 36 0
  17. #pragma libcall CLMidbBase CLMID_CrunchIDs 3c 98003
  18. #pragma libcall CLMidbBase CLMID_ShowStat 42 0
  19. #pragma libcall CLMidbBase CLMID_ResetMinMax 48 0
  20. #pragma libcall CLMidbBase CLMID_ShowMap 4e 0
  21. #pragma libcall CLMidbBase CLMID_DumpDB 54 0
  22. #endif
  23.  
  24. #ifndef _NO_PROTO
  25. void CLMID_StoreID( STRPTR id, STRPTR fromsys );
  26. time_t CLMID_CheckID( STRPTR id, STRPTR wherefrombuff );
  27. time_t CLMID_CheckStoreID( STRPTR id, STRPTR fromsys, STRPTR wherefrombuff );
  28. void CLMID_Flush( void );
  29. long CLMID_CrunchIDs( ULONG days, APTR gaugeobj, APTR appobj );
  30. void CLMID_CloseDB( void );
  31. void CLMID_ShowStat( void );
  32. void CLMID_ResetMinMax( void );
  33. void CLMID_ShowMap( void );
  34. void CLMID_DumpDB( void );
  35. #endif
  36.  
  37. #define CLMIDB_NAME "clmidb.library"
  38. #define CLMIDB_VERSION 7
  39.  
  40. /* 
  41. **    PrefsID for preference data items
  42. */
  43.  
  44. #define CLMIDB_PREFSID MAKE_ID('C','M','I','D')
  45. #define CLMIDB_SUBID_PATH (1|TAGT_STRING)
  46.  
  47. /*
  48. **    Error returns from CLMID_CrunchIDs()
  49. */
  50.  
  51. #define CLMIDB_CERR_OPENDB 1        /* opendb() failed */
  52. #define CLMIDB_CERR_OPENNEW 2        /* OpenAsync() on new output file failed */
  53. #define CLMIDB_CERR_NOMEM 3            /* No memory for internal buffering */
  54.  
  55. /*
  56. **    Flags to 'or' into Crunch Days
  57. */
  58.  
  59. #define CLMIDB_CRUNCH_HOLDBAK (1L<<30)    /* Hold backup after crunch */
  60.  
  61. #endif
  62.